﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MainController.Hardware.PLC.MEGMEET.Communication
{
    public delegate void OnRenewEventHandler();
   

    class DataUnit
    {
        public event OnRenewEventHandler OnRenew;

        public ushort Data = 0;

        //public DataUnit SubData = null;

        //原始数据暂定为uint
        public void UpdateData(ushort data)
        {
            Data = data;
            OnRenew?.Invoke();

        }
    }
}
